package com.cskaoyan.catmall.model.vo;

import com.cskaoyan.catmall.model.vo.czx.wx.CartVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: 逍遥子
 * @Date: 2022/01/11/20:35
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckVo {

    private int grouponRulesId;
    private double actualPrice;
    private double orderTotalPrice;
    private int cartId;
    private int userCouponId;
    private int couponId;
    private double goodsTotalPrice;
    private int addressId;
    private int grouponPrice;
    private CheckedAddressDTO checkedAddress;
    private int couponPrice;
    private int availableCouponLength;
    private int freightPrice;
    private List<CartVo.CartListDTO> checkedGoodsList;

    @NoArgsConstructor
    @Data
    public static class CheckedAddressDTO {
        private Integer id;
        private String name;
        private Integer userId;
        private String province;
        private String city;
        private String county;
        private String addressDetail;
        private String areaCode;
        private String tel;
        private Boolean isDefault;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }

    @NoArgsConstructor
    @Data
    public static class CheckedGoodsListDTO {
        private Integer id;
        private Integer userId;
        private Integer goodsId;
        private String goodsSn;
        private String goodsName;
        private Integer productId;
        private Integer price;
        private Integer number;
        private String[] specifications;
        private Boolean checked;
        private String picUrl;
        private String addTime;
        private String updateTime;
        private Boolean deleted;
    }
}
